public class StartIVEvent extends EventBase {
	private PatientBase patient;
	private Nurse nurse;
		
	public StartIVEvent(int id, PatientBase patient, Nurse nurse) {
		this.patient = patient;
		this.nurse = nurse;
	}

	public boolean canOccur(State state) {
		if(state.isRNAvailable())
			return true;
		else
			return false;
	}


	// Check this method because the nurse aspect is tricky and probably wrong
	public void execute(State s) {
		patient.setActivity(TreatmentType.IV);
		Simulator.addEvent(new EndPatientIVEvent(patient, Simulator.nextNormal(7, 3)));
		Simulator.addEvent(new EndNurseIVEvent(nurse, Simulator.nextNormal(3, 2)));

	}
}
